package STUDENT.NGUYENDUCPHU.OOPs_EXCERCISES.Array.EX2;

public class Models {
	public static int average(int[] array){
		int tong=0;
		for (int i = 0; i < array.length; i++) {
			tong=tong+array[i];
		}
		return tong/(array.length);
	}
	public static double average(double[] array){
		double tong=0;
		for (int i = 0; i < array.length; i++) {
			tong=tong+array[i];
		}
		return tong/(array.length);
	}


}
